/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.controller;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>Project: smvc2022 - ShowController
 * <p>Powered by webrx On 2022-03-19 09:42:36
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */

@RestController @RequestMapping("/show")
public class ShowController {

    @RequestMapping(value = {"s1","s2"},method = {RequestMethod.GET,RequestMethod.POST})
    public String s1(HttpServletRequest req){
        return "hello中文 "+req.getMethod();
    }

    @GetMapping("s3")
    public String[] s3(){
        return new String[]{"郑州","北京","上海","天津"};
    }
}
